package com.moleq.mgnetwork;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class StartBroadcastReceiver extends BroadcastReceiver {

	private static final String TAG = "ServiceBroadReceiver";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Constant.bootCompletedAction)) {

			Log.i(TAG, "boot Completed and start service ...");
			Intent i = new Intent(Intent.ACTION_RUN);
			i.setClass(context, TransporterService.class);
			context.startService(i);

		}

		Log.i(TAG, "call method: onReceives");
	}

}
